package com.order_system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.order_system.constants.Code;
import com.order_system.entity.Customer;
import com.order_system.entity.PayMode;
import com.order_system.entity.ResModel;
import com.order_system.mapper.CustomerMapper;
import com.order_system.mapper.PayModeMapper;
import com.order_system.service.CustomerService;
import com.order_system.service.PayModeService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 李阳
 * @since 2023-01-06
 */
@Service
public class PayModeServiceImpl extends ServiceImpl<PayModeMapper, PayMode> implements PayModeService {

    @Override
    public PayMode selectById(Integer modeId) {
        LambdaQueryWrapper<PayMode> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(true,PayMode::getModeId,modeId);
        return getOne(wrapper);
    }
}
